//
//  SLCommomTools.swift
//  Sina15
//
//  Created by 盼 on 16/4/10.
//  Copyright © 2016年 pan. All rights reserved.
//

import UIKit

//全局变量
let client_id = "3423735923"
let redirect_uri = "http://git.oschina.net/thus"
let client_secret = "925b688d9dbb9388f12f1dc127b2f9a3"

let screenHeight = UIScreen.mainScreen().bounds.height
let screenWidth = UIScreen.mainScreen().bounds.width


let switchRootViewController = "changeRootViewController"

//定义随机色
func randomColor()->UIColor {
    
    let r = CGFloat(random() % 256) / 255
    let g = CGFloat(random() % 256) / 255
    let b = CGFloat(random() % 256) / 255
    return UIColor(red: r, green: g, blue: b, alpha: 1)
}

//定义偏移间距
let cellMargin: CGFloat = 8

//定义一个日期格式
let dateDF = NSDateFormatter()
